package com.qf.flash.ui.home.adapter;

import com.qf.flash.R;
import com.qf.flash.model.TeamMateBean;
import com.qf.flashlib.adapter.BaseRViewItem;
import com.qf.flashlib.adapter.RViewHolder;

public class MyTeamItem extends BaseRViewItem<Object> {
    @Override
    public boolean isItemView(Object entity, int position) {
        return entity instanceof TeamMateBean;
    }

    @Override
    public int getItemLayout() {
        return R.layout.item_my_team;
    }

    @Override
    public void convert(RViewHolder holder, Object entity, int position, int itemSize) {
        TeamMateBean teamMateBean = (TeamMateBean) entity;
        holder.setText(R.id.tv_name,teamMateBean.userName);
        holder.setText(R.id.tv_time,teamMateBean.createDate);
    }
}
